package com.itheima.object;

public class objTest {
    public static void main(String[] args) {
        //目标:学会创建对象
        //类型 对象名 = new Star();
        objStar s1=new objStar();
        s1.name="王祖贤";
        s1.age=50;
        s1.gender="女";
        s1.height=172.5;
        s1.weight=50.5;

        System.out.println(s1.name);
        System.out.println(s1.age);
        System.out.println(s1.gender);
        System.out.println(s1.height);
        System.out.println(s1.weight);

        //创建对象,存储杨幂的数据
        objStar s2 = new objStar();
        s2.name="杨幂";
        s2.age=38;
        s2.gender="女";
        s2.height=171.5;
        s2.weight=52.5;
        System.out.println(s2.name);
        System.out.println(s2.age);
        System.out.println(s2.gender);
        System.out.println(s2.height);
        System.out.println(s2.weight);
    }
}
